﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucAddNewLoanPhone.ascx.cs"
    Inherits="Admin_UserControl_ucAddNewLoanPhone" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<h2 style="text-align: center;" class="PostHeaderIcon-wrapper">
    ADD NEW LOAN PHONE
</h2>
<br />
<asp:UpdatePanel ID="updLphone" runat="server">
    <ContentTemplate>
        <table id="tab11">
            <tr>
                <td>
                    Brand
                </td>
                <td>
                    <%--<asp:TextBox ID="txt_Brand" runat="server" Width="87px"></asp:TextBox>--%>
                    <asp:ComboBox ID="cbBrand" runat="server" Width="107px" OnSelectedIndexChanged="cbBrand_SelectedIndexChanged"
                        AutoPostBack="true" AutoCompleteMode="Append">
                    </asp:ComboBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                        ValidationGroup="save" ControlToValidate="cbBrand"></asp:RequiredFieldValidator>
                </td>
                <td>
                    Model
                </td>
                <td>
                    <%--<asp:TextBox ID="txt_model" runat="server" Width="149px"></asp:TextBox>--%>
                    <asp:ComboBox ID="cbModel" runat="server" Width="107px" AutoCompleteMode="Append">
                    </asp:ComboBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="cbModel" ErrorMessage="*" ValidationGroup="save"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Loan Fee
                </td>
                <td>
                </td>
                <td>
                    IME
                </td>
                <td>
                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="txt_IME"
                        FilterType="Numbers">
                    </asp:FilteredTextBoxExtender>
                    <asp:TextBox ID="txt_IME" runat="server" Width="149px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" ValidationGroup="save" ControlToValidate="txt_IME"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <%--<asp:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="txt_loanfee"
                Mask="99,999.99" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                OnInvalidCssClass="MaskedEditError" MaskType="Number" InputDirection="RightToLeft"
                AcceptNegative="Left" DisplayMoney="Left" ErrorTooltipEnabled="True">
            </asp:MaskedEditExtender>--%>
                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="txt_loanfee"
                        FilterType="Numbers">
                    </asp:FilteredTextBoxExtender>
                    <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txt_loanfee"
                        WatermarkCssClass="clsWaterMarkRequiredField" WatermarkText="0">
                    </asp:TextBoxWatermarkExtender>
                    <asp:TextBox ID="txt_loanfee" runat="server" Width="70px">0</asp:TextBox>
                </td>
                <td>
                </td>
                <td>
                    Accessories Included
                </td>
                <td>
                    <asp:TextBox ID="txt_access" runat="server" Width="180px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    Notes
                </td>
                <td colspan="3">
                    <asp:TextBox ID="txt_notes" runat="server" TextMode="MultiLine" Height="44px" Width="91%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Amount Deposited
                </td>
                <td>
                  
                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="txt_amount"
                        FilterType="Numbers">
                    </asp:FilteredTextBoxExtender>
                    <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="txt_amount"
                        WatermarkCssClass="clsWaterMarkRequiredField" WatermarkText="0">
                    </asp:TextBoxWatermarkExtender>
                    <asp:TextBox ID="txt_amount" runat="server" Width="92px" Text="0"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ErrorMessage="*" ValidationGroup="save" ControlToValidate="txt_amount" ></asp:RequiredFieldValidator>
                </td>
                <td>
                    Payment Method
                </td>
                <td>
                    <asp:DropDownList ID="dropMethod" runat="server" Height="22px" Width="98px">
                        <asp:ListItem Value="cash">Cash</asp:ListItem>
                        <asp:ListItem Value="EFT">EFT</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td colspan="4" align="center">
                </td>
            </tr>
        </table>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="cbBrand" EventName="SelectedIndexChanged" />
    </Triggers>
</asp:UpdatePanel>
<p style="text-align: center">
    <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" Height="30px"
        Width="57px" ValidationGroup="save" />
    &nbsp;</p>
